/*
 * @Date: 2024-06-03 11:08:26
 * @Autor: 叶世超
 * @LastEditors: 叶世超 yesc163@163.com
 * @LastEditTime: 2024-06-03 11:17:50
 * @FilePath: \reslib-web\src\api\knowledge\relationship\index.ts
 * @Description: 描述
 * @version: 版本
 */
import request from '@/config/axios'
// 关系管理接口

// 字段：
/**
 * id
 */
// private String id;

/**
 * 关系名
 */
// @NotNull(message = "关系名不能为空")
// private String relationName;

/**
 * 创建时间
 */
// private String createTime;

/**
 * 删除状态
 */
// private int deleted;

// 新增接口
// 参数：Id  必填
export const insertHybaseGraphRelation = async (params) => {
  return await request.post({ url: '/knowledgeGraph/insertHybaseGraphRelation', data: params })
}
// 修改接口
// 参数：Id  必填
export const updateHybaseGraphRelation = async (params) => {
  return await request.post({ url: '/knowledgeGraph/updateHybaseGraphRelation', data: params })
}
// 分页接口
// 查询参数：relationName
export const getGraphRelationPage = async (params) => {
  return await request.get({ url: '/knowledgeGraph/getGraphRelationPage', params })
}
// 删除接口
// 参数：ids   必填
export const deleteHybaseGraphRelation = async (params) => {
  return await request.get({ url: '/knowledgeGraph/deleteHybaseGraphRelation' + '?ids=' + params })
}
